package org.expressme.webwind.renderer;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class RedirectRenderer extends Renderer {
	private String url;

    
	public RedirectRenderer(String url) {
		super();
		this.url = url;
	}


	@Override
	public void render(ServletContext context, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		
		response.sendRedirect(url);
	}

}
